.publishCard {
  margin-bottom: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--shadow-color);
  transition: all 0.3s ease;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  
  &:hover {
    box-shadow: 0 4px 16px var(--shadow-color);
    transform: translateY(-2px);
  }
}

.publishContainer {
  .textArea {
    border: none;
    box-shadow: none;
    resize: none;
    font-size: 16px;
    line-height: 1.6;
    
    &:focus {
      border: none;
      box-shadow: none;
    }
    
    &::placeholder {
      color: var(--text-secondary);
      font-style: italic;
    }
  }
  
  .imagePreview {
    margin: 16px 0;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px dashed var(--border-color);
    
    .imageItem {
      position: relative;
      display: inline-block;
      
      .deleteBtn {
        position: absolute;
        top: -8px;
        right: -8px;
        background: rgba(255, 255, 255, 90%);
        border-radius: 50%;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 10%);
        
        &:hover {
          background: #fff;
          color: #ff4d4f;
        }
      }
    }
  }
  
  .toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    
    .toolBtn {
      color: var(--text-secondary);
      transition: all 0.3s ease;
      
      &:hover {
        color: var(--text-primary);
        background: rgba(24, 144, 255, 6%);
      }
    }

    .disabledTip {
      font-size: 12px;
      color: #ff4d4f;
      margin-left: 8px;
    }
    
    .publishBtn {
      border-radius: 20px;
      padding: 0 24px;
      height: 36px;
      font-weight: 500;
      transition: all 0.3s ease;
      
      &:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(24, 144, 255, 30%);
      }
      
      &:disabled {
        transform: none;
        box-shadow: none;
      }
    }
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.publishCard {
  animation: fadeInUp 0.6s ease-out;
}

.imagePreview {
  animation: fadeInUp 0.4s ease-out;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .publishContainer {
    .toolbar {
      flex-direction: column;
      gap: 12px;
      align-items: stretch;
      
      .publishBtn {
        width: 100%;
      }
    }
    
    .imagePreview {
      .imageItem {
        margin: 4px;
      }
    }
  }
}